import request from "@/admin/utils/request"

//添加
export function addRole(data) {
    return request({
        url: "/apis/base/role", method: "post", data
    });
}

//列表
export function roleList(params) {
    return request({
        url: "/apis/base/role", method: "get", params
    });
}

//删除
export function delRole(id) {
    return request({
        url: `/apis/base/role/${id}`, method: "delete",
    });
}

//更新
export function upDateRole(data, id, tenantId) {
    return request({
        url: `/apis/base/role/${tenantId}?id=${id}`, method: "put", data
    });
}
